package org.xiezc.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.Properties;

/**
 * Created by xiezc on 17/3/13.
 */
public class Constant {


    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        PrintStream so = System.out;

        so.println(Constant.class.getResource("/").getPath());
        InputStreamReader isr = new InputStreamReader(
                new FileInputStream("com/xiezc/config/config.properties"));
        properties.load(isr);
        isr.close();

        so.println(properties.get("Url"));
    }

}
